<form class="box" nz-form [formGroup]="validateForm" (ngSubmit)="submitForm()">
    <nz-form-item class="form">
        <nz-form-label nzRequired>文档名称</nz-form-label>
        <nz-form-control [nzSpan]="18" nzHasFeedback nzValidatingTip="Validating..." [nzErrorTip]="userErrorTpl">
            <input nz-input formControlName="docName" placeholder="请输入本文档名称" />
            <ng-template #userErrorTpl let-control>
                <ng-container *ngIf="control.hasError('required')">请输入本文档名称</ng-container>
            </ng-template>
        </nz-form-control>
        <nz-form-control [nzSpan]="5" [nzOffset]="1">
            <button nz-button nzType="primary" [disabled]="!validateForm.valid">提交</button>
        </nz-form-control>
    </nz-form-item>
    <div id="md" class="mdeditor" appEditorMd [editormdConfig]="conf" (onEditorChange)="syncModel($event)">
        <textarea formControlName="docCont" style="display:block;" [(ngModel)]="blog_content"></textarea>
    </div>
</form>